<?
    if (!isset($current_month) || !isset($current_year)){
        $current_month = date("m");
        $current_year = date("Y");
    }
?>
<div class="preview form_section">
<div id ="feedback_head">
<div id="datepicker_center">
<input type='button' id='datePicker' value='<?=date('F', mktime(0,0,0,$current_month))." ".$current_year?>'/><br/>
<input id='datePickerText' type='text' value=''/>
<div id='datePickerHelp'>Click to change</div>
</div>
<a href='<?=base_url()?>feedback/archived_feedback/showMonth/<?=$prevDate?>'><div id='date_prev'></div></a>
<a href='<?=base_url()?>feedback/archived_feedback/showMonth/<?=$nextDate?>'><div id='date_next'></div></a>
</div>
<table class="tableStyle">
    <thead>
    <tr>
        <th>Name</th>
        <th>Date</th>
        <th>Comment</th>
        <th>Staff Name</th>
        <th>Response</th>
    </tr>
    </thead>
    <tbody>
    <? foreach ($feedback->result() as $result):?>
        <tr class="clickable archived" value="<?=$result->feedback_id?>">
            <td><?=character_limiter($result->user_title,20)?></td>
            <td><?=$result->feedback_date?></td>
            <td><?=character_limiter($result->feedback_comment,30)?></td>
            <td><?=character_limiter($result->staffuser_title,20)?></td>
            <td><?=character_limiter($result->feedback_response,30)?></td>
        </tr>
    <? endforeach;?>
    </tbody>
</table>
</div>
